﻿<template>
    <div >
        <router-link to="/home" class="link" replace>Home</router-link>
        <router-link :to="{name:'guanyu'}" class="link">About</router-link>

        <!-- 指定组件的呈现位置 -->
        <router-view></router-view>
    </div>
</template>

<script>
    export default {
        name: 'App',
        components:{},
    }
</script>

<style>
*{
    margin: 0;
    padding: 0;
}
.link{
    margin-left:10px;/*外边距 */
    /* padding-left: 10px; *//*内边距 */
}
</style>